package com.he.DesignPatterns.adapter.ClassAdapter;

/**
 * @description: 适配器类
 * @Author: HCL
 * @Date: 2024/8/26 16:40
 */
public class SDAdapter extends TFCardImpl implements SDCard{

    @Override
    public String readSD() {
        System.out.println("适配器读取TFCard");
        return readTF();
    }

    @Override
    public void writeSD(String data) {
        System.out.println("适配器写入TFCard");
        writeTF(data);
    }
}
